#ifndef FRM_QUERYPAGE_H
#define FRM_QUERYPAGE_H

#include <QWidget>
#include "queryresult.h"
#include "queryresultmodel.h"
#include <QStyledItemDelegate>
#include <QListView>
namespace Ui {
class frm_QueryPage;
}

class frm_QueryPage : public QWidget
{
    Q_OBJECT

public:
    explicit frm_QueryPage(QWidget *parent = nullptr);
    ~frm_QueryPage();
    void setTable(QueryResultModel* fl);
    void setPage(int i);
    void clean();
    QStyledItemDelegate* getViewDelegate();
    //void OnOrder();
signals:
    void PageChanged(int t);
    void returnToMain();
    void RequestForOrder(QueryResult* k);
private:
    Ui::frm_QueryPage *ui;
    QListView* l1 = new QListView();
    QListView* l2 = new QListView();
    OneWayDelegate* v1 = new OneWayDelegate();
    OneWayDelegate* v2 = new OneWayDelegate();
};

#endif // FRM_QUERYPAGE_H
